<html>
<head><meta charset="utf-8"><title>linux perf crate · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/linux.20perf.20crate.html">linux perf crate</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="194415983"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/linux%20perf%20crate/near/194415983" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/linux.20perf.20crate.html#194415983">(Apr 17 2020 at 09:36)</a>:</h4>
<p>Hello! I am looking for a crate that would allow me to start linux perf profiler programmatically (probably using <a href="http://man7.org/linux/man-pages/man2/perf_event_open.2.html" title="http://man7.org/linux/man-pages/man2/perf_event_open.2.html">http://man7.org/linux/man-pages/man2/perf_event_open.2.html</a> under the hood) and gather counters into some "standard" file format?</p>



<a name="194460994"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/linux%20perf%20crate/near/194460994" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/linux.20perf.20crate.html#194460994">(Apr 17 2020 at 15:50)</a>:</h4>
<p>I found <a href="https://docs.rs/perf-event/0.4.2/perf_event/" title="https://docs.rs/perf-event/0.4.2/perf_event/">https://docs.rs/perf-event/0.4.2/perf_event/</a><br>
It seems promising</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>